import styled from 'styled-components'

export const HeaderWrap = styled.div `
    height: .4rem;
    background: #ee742f;
    display: flex;
    align-items: center;
    justify-content: center;
    ul {
        width: 1.4rem;
        height: .3rem;
        display: flex;
        position: relative;
        border: 1px solid #fff;
        z-index: 0;
        border-radius: .15rem;
        overflow: hidden;
        li {
            flex: 1;
            line-height: .3rem;
            text-align: center;
            color: #fff;
            border-radius: .15rem;
            &:last-child {
                position: absolute;
                width:50%;
                height: .3rem;
                background: #fff;
                z-index: -1;
                border-radius: .15rem;
                // transform: translate(0, 0);
                // transition: all 0.3s ease-in;
                &.right {
                    right: 0;
                    // transfrom: translate(100%, 0);
                }
            }
            &.active {
                background: #fff;
                color: #ee742f;
            }
        }
    }
`

export const CategroyWrap = styled.div `
    height: 100%;
    overflow: hidden;
`

export const CategoryShowWrap = styled.div `
    height: 81%;
    display: flex;
    > div:first-child {
        width: .9rem;
        > ul {
            height: 100%;
            overflow-y: scroll;
            font-weight: 650;
            li {
                height: .5rem;
                text-align: center;
                line-height: .5rem;
                background: #f3f3f3;
                &.active {
                    background: #fff;
                    color: #ee742f;
                    border-bottom: 2px solid #ee742f;
                }
            }
        }
    }
    > div:last-child {
        flex: 1;
        background: #fff;
        padding: .2rem .1rem;
        > ul {
            display: flex;
            flex-wrap: wrap;
            overflow-y: scroll;
            height: 100%;
            font-size: 12px;
            font-weight: 550;
            align-content: flex-start;
            li {
                width: 33.33333%;
                text-align: center;
                height: .5rem;
                line-height: .5rem;
                color: #666;
            }
        }
    }
`
